home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-10-25 | 975 b | 25 lines | [TEXT/MPS ] |
- # Copyright © 1986-1990 Apple Computer, Inc. All rights reserved.
- # Drop this file in your MPW Folder
-
- # Set the location of the MacApp Folder
- # If the folder can't be found; automatically prompts user for it and
- # remember where the folder was found
-
- if ¬ "{MacApp}" && "`Exists "{ShellDirectory}"MacApp_Folder`"
- Set MacApp "`Catenate "{ShellDirectory}"MacApp_Folder`"
- End
- if ¬ "`Exists "{ShellDirectory}"MacApp_Folder`" || ¬ "`Exists "{MacApp}"`"
- Set exit 0; Set temp "{Boot}"; Loop; ∂
- Set temp "`(GetFileName "{temp}" -q -d -m "Where is your ∂"MacApp∂" folder?")≥dev:null`"; ∂
- if "{temp}"!=""; Echo -n "{temp}" > "{ShellDirectory}"MacApp_Folder; ∂
- Set MacApp "{temp}"; Else; exit; End; ∂
- (set x "`Files "{temp}"Startup`") ≥dev:null; ∂
- if "{x}"==""; Alert MacApp - The ∂"{temp}∂" folder does not contain MacApp files.; else; break; end; End; ∂
- set exit 1 ;
- End
-
- Set MacApp "`Catenate "{ShellDirectory}"MacApp_Folder`"
- Export MacApp
-
- Execute "{MacApp}"Startup
-